<extend name="public:base" />

<block name="left">
	<div class="mark_bar cl">
		<a href="javascript:history.back(-1);" class="goback fl"><i class="iconfont">&#xe600;</i></a>
		<p>找回密码</p>
		<a href="{:url('uc/sign/login')}" class="btm">登录</a>
	</div>
</block>

<block name="main">
	<div class="container">
		<form action="{:url('uc/sign/resets')}" method="post" id="form">
			<div class="form">
				<div class="input_form">
					<div class="input_form_bar">
						<p>手机号码</p>
						<input placeholder="请输入手机号码" name="phone" id="phone" size="11" maxlength="11" type="tel" autocomplete="off" />
						<div class="cl"></div>
					</div>
					<div class="input_form_bar">
						<p>图形验证码</p>
						<input type="hidden" id="sendcodeurl" value="{:url('uc/sign/find_sms')}" />
						<input placeholder="图形验证码" name="verify" id="verify" class="input_t" value="" size="4" maxlength="4" autocomplete="off" type="text" />
						<img src="{:url('uc/sign/verify')}" class="verifyimg" onclick="refreshEcode()" />
						<div class="cl"></div>
					</div>
					<div class="input_form_bar">
						<p>短信验证码</p>
						<input placeholder="短信验证码" name="scode" id="scode" class="input_t" value="" size="6" maxlength="6" autocomplete="off" type="tel" />
						<a href="javascript:void(0);" class="send_btm" id="btnSendMsg"  onclick="isSendbtm();">获取验证码</a>
						<div class="cl"></div>
					</div>
				</div>
				<div class="pt1"></div>
				<div class="input_form">
	                <div class="input_form_bar">
	                    <p>新密码</p>
	                    <input name="password1" id="password" maxlength="16" placeholder="8-16位包含字母和数字密码" type="password" autocomplete="off"/>
	                    <i class="iconfont passeye">&#xe626;</i>
	                    <div class="cl"></div>
	                </div>
	                <div class="input_form_bar">
	                    <p>确认密码</p>
	                    <input name="password2" id="password2" maxlength="16" placeholder="再次输入" type="password" autocomplete="off"/>
	                    <i class="iconfont passeye">&#xe626;</i>
	                    <div class="cl"></div>
	                </div>
	            </div>
				<div class="wrap">
					<input class="submit" type="submit" value="确定" />
				</div>
			</div>
		</form>
	</div>
</block>
<block name="menu"></block>

<block name="js">
	<script type="text/javascript" src="__JS__/check.js?v={:config('app_ver')}"></script>
	<script type="text/javascript">

		$("#form").submit(function() {
			if(!checkPhone()) return false;
			if(!checkVerify()) return false;
			if(!checkPhonecode()) return false;
			if(!checkPassword()) return false;
			if(!recheckPassword($('#password').val(),$('#password2').val())) return false;

			return ajax_post($(this),'','','','',2);
		});
	</script>
</block>